package com.upb.webserver.common.pojo.org;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * new org.
 */
@Data
public class ReqAddOrgVO {
    @NotBlank
    private String name;
    @NotBlank
    @Pattern(regexp = "^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$",message = "不符合域名规范")
    private String suffix;
    private Integer belongToDeveloper;
    @NotNull
    private String description;
}
